module.exports = function($) {
	return async function faceList({ stint } = {}) {
		if(!stint) { return '参数[stint]不对'; }

		const data = JSON.parse(_fs.readFileSync($.C.path.data, 'utf8'));

		const stintFile = data.arrStint.find(s => s.id == stint.id);
		if(!stintFile) { return '找不到对应记录[id]'; }

		stintFile.typeTiming = stint.typeTiming;

		stintFile.title = stint.title;
		stintFile.arrTag = stint.arrTag;

		stintFile.timeBase = stint.timeBase;
		stintFile.interval = stint.interval;

		stintFile.template = stint.template;
		stintFile.params = stint.params;
		stintFile.calcs = stint.calcs;

		stintFile.paramTexts = stint.paramTexts;

		_fs.writeFileSync($.C.path.data, JSON.stringify(data, null, '\t'));

		return data;
	};
};